<template>
  <div>
    <h3>父组件 {{ num }}</h3>
    <h3>父组件 {{ num1 }}</h3>
    <p>-----下面是子组件------</p>
    <!-- <son :value="num" @input="val => num = val" /> -->
    <!-- <son :a.sync="num" :b.sync="num1" /> -->
    <son :a="num" :b="num1" @update:a="val=>num=val" @update:b="val=>num1=val" />
  </div>
</template>

<script>
import Son from './Son.vue'
export default {
  components: {
    Son
  },
  data() {
    return {
      num: 6,
      num1: 10
    }
  }
}
</script>

<style>

</style>
